<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<meta name="keywords" content="Nacos,服务,配置,性能" />
	<meta name="description" content="Nacos2.0服务配置性能测试报告" />
	<!-- 网页标签标题 -->
	<title>Nacos2.0服务配置性能测试报告</title>
	<link rel="shortcut icon" href="https://img.alicdn.com/tfs/TB1hgJpHAPoK1RjSZKbXXX1IXXa-64-64.png"/>
	<link rel="stylesheet" href="/build/documentation.css" />
</head>
<body>
	<div id="root"><div class="documentation-page" data-reactroot=""><header class="header-container header-container-normal"><div class="header-body"><a href="/en-us/index.html"><img class="logo" src="/img/nacos_colorful.png"/></a><div class="search search-normal"><span class="icon-search"></span></div><span class="language-switch language-switch-normal">中</span><div class="header-menu"><img class="header-menu-toggle" src="/img/menu_gray.png"/><ul><li class="menu-item menu-item-normal"><a href="/en-us/index.html">HOME</a></li><li class="menu-item menu-item-normal menu-item-normal-active"><a href="/en-us/docs/quick-start.html">DOCS</a></li><li class="menu-item menu-item-normal"><a href="/en-us/blog">BLOG</a></li><li class="menu-item menu-item-normal"><a href="/en-us/community">COMMUNITY</a></li><li class="menu-item menu-item-normal"><a href="https://cn.aliyun.com/product/aliware/mse?spm=nacos-website.topbar.0.0.0">NACOS IN CLOUD</a><img class="menu-img" src="https://img.alicdn.com/tfs/TB1esl_m.T1gK0jSZFrXXcNCXXa-200-200.png"/></li><li class="menu-item menu-item-normal"><a href="http://console.nacos.io/nacos/index.html">DEMO-CONSOLE</a></li></ul></div></div></header><div class="bar"><div class="bar-body"><img src="/img/docs.png" class="front-img"/><div class="bar-title"><span>Documentation</span><div class="bone bone-light"></div></div><img src="/img/docs.png" class="back-img"/></div></div><section class="content-section"><div class="content-body"><div class="sidemenu"><div class="sidemenu-toggle"><img src="https://img.alicdn.com/tfs/TB1E6apXHGYBuNjy0FoXXciBFXa-200-200.png"/></div><ul><li class="menu-item menu-item-level-1"><span>Nacos </span><ul><li style="height:180px;overflow:hidden" class="menu-item menu-item-level-2"><span>What is Nacos<img style="transform:rotate(0deg)" class="menu-toggle" src="/img/arrow_down.png"/></span><ul><li class="menu-item menu-item-level-3"><a href="/en-us/docs/what-is-nacos.html" target="_self">What is Nacos</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/concepts.html" target="_self">Concepts</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/architecture.html" target="_self">Architecure</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/feature-list.html" target="_self">Feature list</a></li></ul></li><li style="height:324px;overflow:hidden" class="menu-item menu-item-level-2"><span>Quick Start<img style="transform:rotate(0deg)" class="menu-toggle" src="/img/arrow_down.png"/></span><ul><li class="menu-item menu-item-level-3"><a href="/en-us/docs/quick-start.html" target="_self">Nacos</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/quick-start-spring.html" target="_self">Nacos Spring</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/quick-start-spring-boot.html" target="_self">Nacos Spring Boot</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/quick-start-spring-cloud.html" target="_self">Nacos Spring Cloud</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/quick-start-docker.html" target="_self">Nacos Docker</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/use-nacos-with-dubbo.html" target="_self">Nacos with Dubbo</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/use-nacos-with-kubernetes.html" target="_self">Nacos with K8s</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/nacos-sync.html" target="_self">Nacos Sync</a></li></ul></li><li style="height:288px;overflow:hidden" class="menu-item menu-item-level-2"><span>User Guide<img style="transform:rotate(0deg)" class="menu-toggle" src="/img/arrow_down.png"/></span><ul><li class="menu-item menu-item-level-3"><a href="/en-us/docs/sdk.html" target="_self">Java SDK</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/other-language.html" target="_self">Other Language</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/open-api.html" target="_self">Open-API</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/nacos-spring.html" target="_self">Nacos Spring</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/system-configurations.html" target="_self">Nacos System Configurations</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/auth.html" target="_self">Authentication</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/faq.html" target="_self">FAQ</a></li></ul></li><li style="height:36px;overflow:hidden" class="menu-item menu-item-level-2"><span>Admin Guide<img style="transform:rotate(-90deg)" class="menu-toggle" src="/img/arrow_down.png"/></span><ul><li class="menu-item menu-item-level-3"><a href="/en-us/docs/deployment.html" target="_self">Deployment Guide</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/cluster-mode-quick-start.html" target="_self">Cluster Mode Deployment</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/management-api.html" target="_self">Management OpenAPI</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/console-guide.html" target="_self">Admin Console Guide</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/monitor-guide.html" target="_self">Nacos Monitor Guide</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/nacos-config-benchmark.html" target="_self">Nacos Config Benchmark</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/nacos2-config-benchmark.html" target="_self">Nacos2.0 Config Benchmark</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/nacos-naming-benchmark.html" target="_self">Nacos Naming Benchmark</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/nacos2-naming-benchmark.html" target="_self">Nacos2.0 Naming Benchmark</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/nacos-sync-use.html" target="_self">Data Migration to Nacos</a></li></ul></li><li style="height:36px;overflow:hidden" class="menu-item menu-item-level-2"><span>Nacos 2.0<img style="transform:rotate(-90deg)" class="menu-toggle" src="/img/arrow_down.png"/></span><ul><li class="menu-item menu-item-level-3"><a href="/zh-cn/docs/2.0.0-alpha.html" target="_self">2.0-BETA</a></li><li class="menu-item menu-item-level-3"><a href="/zh-cn/docs/2.0.0-upgrading.html" target="_self">Upgrading</a></li></ul></li><li style="height:36px;overflow:hidden" class="menu-item menu-item-level-2"><span>Contributor Guide<img style="transform:rotate(-90deg)" class="menu-toggle" src="/img/arrow_down.png"/></span><ul><li class="menu-item menu-item-level-3"><a href="/en-us/docs/contributing.html" target="_self">Contribute to Nacos</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/contributing-flow.html" target="_self">Contributing Flow</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/pull-request.html" target="_self">Pull Request Template</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/how-to-reporting-bugs.html" target="_self">How to report bugs</a></li></ul></li><li style="height:36px;overflow:hidden" class="menu-item menu-item-level-2"><span>Community<img style="transform:rotate(-90deg)" class="menu-toggle" src="/img/arrow_down.png"/></span><ul><li class="menu-item menu-item-level-3"><a href="/en-us/docs/community.html" target="_self">Community</a></li><li class="menu-item menu-item-level-3"><a href="/en-us/docs/nacos-dev.html" target="_self">Develop Team</a></li></ul></li></ul></li></ul></div><div class="doc-content markdown-body"><h1>Nacos 2.0.0-ALPHA2 配置性能测试报告</h1>
<h2>测试目的</h2>
<ol>
<li>长链接各项业务指标的最高值</li>
<li>长链接相比短链接的差异数据对比</li>
</ol>
<h2>测试工具</h2>
<p>我们使用自研的PAS性能评估服务平台进行压测，其原理是基于利用JMeter引擎，使用PAS自动生成的JMeter脚本，进行智能压测。</p>
<p><img src="https://img.alicdn.com/tfs/TB1xCfDDpzqK1RjSZFvXXcB7VXa-692-297.png" alt="Pas图"></p>
<h2>测试环境</h2>
<h3>1.环境</h3>
<table>
<thead>
<tr>
<th><strong>指标</strong></th>
<th><strong>参数</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>机器</td>
<td>CPU 8核，内存16G</td>
</tr>
<tr>
<td>集群规模</td>
<td>单机</td>
</tr>
<tr>
<td>Nacos版本</td>
<td>Nacos 2.0.0-ALPHA2， Nacos 1.4.0</td>
</tr>
<tr>
<td>数据库</td>
<td>32C128G</td>
</tr>
</tbody>
</table>
<p>2.设置启动参数</p>
<p>因为grpc使用的直接内存，堆内存相对使用较少，所以jvm参数有所调整</p>
<h4>Nacos2.0 gRPC</h4>
<pre><code>JAVA_OPT=&quot;${JAVA_OPT} -server -Xms9216m -Xmx9216m  -XX:MaxDirectMemorySize=4096m -XX:NewSize=4096m  -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMTStatistics   -DisPushContent=false -XX:MaxNewSize=4096m -XX:MetaspaceSize=512m -XX:MaxMetaspaceSize=512m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/admin/nacos/logs/java_heapdump.hprof -XX:-UseLargePages -Xloggc:/home/admin/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -DQUERYTIMEOUT=90  -XX:SurvivorRatio=10 -XX:+UseConcMarkSweepGC -XX:+UseCMSCompactAtFullCollection -XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/admin/nacos/logs -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:CMSMaxAbortablePrecleanTime=5000 -XX:CMSInitiatingOccupancyFraction=74 -XX:+UseCMSInitiatingOccupancyOnly -XX:ParallelGCThreads=8 -Dnacos.core.auth.enabled=false &quot;
</code></pre>
<h4>Nacos1.X HTTP</h4>
<pre><code>-server -Xms12880m -Xmx12880m -XX:MaxDirectMemorySize=1024m -XX:NewSize=1024m -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMTStatistics -DisPushContent=false -XX:MaxNewSize=4096m -XX:MetaspaceSize=512m -XX:MaxMetaspaceSize=512m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/admin/nacos/logs/java_heapdump.hprof -XX:-UseLargePages -Xloggc:/home/admin/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -DQUERYTIMEOUT=90 -XX:SurvivorRatio=10 -XX:+UseConcMarkSweepGC -XX:+UseCMSCompactAtFullCollection -XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/admin/nacos/logs -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:CMSMaxAbortablePrecleanTime=5000 -XX:CMSInitiatingOccupancyFraction=74 -XX:+UseCMSInitiatingOccupancyOnly -XX:ParallelGCThreads=8 -Dnacos.core.auth.enabled=false -Dnacos.member.list= -Djava.ext.dirs=/opt/taobao/java/jre/lib/ext:/opt/taobao/java/lib/ext -Xloggc:/home/admin/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M
</code></pre>
<h2>测试场景</h2>
<p>以下测试场景都是服务配置重要接口：</p>
<ul>
<li>验证Nacos服务发布配置的能力</li>
<li>验证Nacos服务获取配置的能力</li>
<li>验证Nacos服务监听配置的能力</li>
<li>验证Nacos服务长连接容量能力</li>
</ul>
<p>测试方式均是在相同的环境下，使用相同的压力进行测试，分别比对Nacos2.X版本和Nacos1.X版本的性能差异。</p>
<h2>测试数据</h2>
<h3>1. 发布配置</h3>
<h4>Nacos2.0</h4>
<table>
<thead>
<tr>
<th>tps</th>
<th>500</th>
<th>1000</th>
<th>1200</th>
<th>1500</th>
<th>2000</th>
<th>2500</th>
<th>3000</th>
</tr>
</thead>
<tbody>
<tr>
<td>avg rt(ms)</td>
<td>7</td>
<td>8</td>
<td>12</td>
<td>9</td>
<td>9</td>
<td>10.89</td>
<td>1044</td>
</tr>
<tr>
<td>80% rt(ms)</td>
<td>7.9</td>
<td>8</td>
<td>11</td>
<td>9</td>
<td>9</td>
<td>10.69</td>
<td>1581</td>
</tr>
<tr>
<td>95% rt(ms)</td>
<td>8.7</td>
<td>11</td>
<td>25</td>
<td>15</td>
<td>14</td>
<td>24.74</td>
<td>2966</td>
</tr>
<tr>
<td>cpu</td>
<td>12</td>
<td>22</td>
<td>28</td>
<td>36</td>
<td>47</td>
<td>55</td>
<td>62</td>
</tr>
<tr>
<td>load</td>
<td>0.5</td>
<td>1.5</td>
<td>1.5</td>
<td>1.5</td>
<td>3.5</td>
<td>4</td>
<td>5</td>
</tr>
</tbody>
</table>
<h4>Nacos1.X</h4>
<table>
<thead>
<tr>
<th>tps</th>
<th>500</th>
<th>1000</th>
<th>1200</th>
<th>1400</th>
<th>2000</th>
<th>2500</th>
<th>3000</th>
</tr>
</thead>
<tbody>
<tr>
<td>avg rt(ms)</td>
<td>9</td>
<td>8.67</td>
<td>8</td>
<td>9</td>
<td>10</td>
<td>11.88</td>
<td>1038</td>
</tr>
<tr>
<td>80% rt(ms)</td>
<td>9</td>
<td>9.4</td>
<td>10</td>
<td>9</td>
<td>10</td>
<td>12.48</td>
<td>1090</td>
</tr>
<tr>
<td>95% rt(ms)</td>
<td>11</td>
<td>11.4</td>
<td>12</td>
<td>14</td>
<td>18</td>
<td>25.7</td>
<td>1170</td>
</tr>
<tr>
<td>cpu</td>
<td>14</td>
<td>25</td>
<td>30</td>
<td>35</td>
<td>50</td>
<td>60</td>
<td>65</td>
</tr>
<tr>
<td>load</td>
<td>0.9</td>
<td>1.4</td>
<td>2</td>
<td>2.5</td>
<td>3</td>
<td>2.5</td>
<td>3.7</td>
</tr>
</tbody>
</table>
<h4>结果分析</h4>
<p>发布配置两者差别不大,TPS 在2500tps左右出现拐点,http和长链接通道的cpu消耗分布类似。长链接对发布配置提升不大。</p>
<h3>2. 获取配置</h3>
<p>随机获取200个 5K大小配置</p>
<h4>Nacos2.0</h4>
<table>
<thead>
<tr>
<th>tps</th>
<th>2000</th>
<th>4000</th>
<th>6000</th>
<th>8000</th>
<th>10000</th>
<th>14000</th>
<th>18000（实际15000）</th>
</tr>
</thead>
<tbody>
<tr>
<td>avg rt(ms)</td>
<td>3.3</td>
<td>4</td>
<td>3.5</td>
<td>5</td>
<td>7</td>
<td>26</td>
<td>133</td>
</tr>
<tr>
<td>80% rt(ms)</td>
<td>2.2</td>
<td>2.2</td>
<td>2.5</td>
<td>2.5</td>
<td>4</td>
<td>41</td>
<td>174</td>
</tr>
<tr>
<td>95% rt(ms)</td>
<td>3.3</td>
<td>4.8</td>
<td>5.4</td>
<td>24</td>
<td>38</td>
<td>93</td>
<td>238</td>
</tr>
<tr>
<td>cpu</td>
<td>12</td>
<td>25</td>
<td>37</td>
<td>48</td>
<td>65</td>
<td>83</td>
<td>85</td>
</tr>
<tr>
<td>load</td>
<td>1.2</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>20</td>
<td>36</td>
</tr>
</tbody>
</table>
<h4>Nacos1.X</h4>
<table>
<thead>
<tr>
<th>tps</th>
<th>2000</th>
<th>4000</th>
<th>6000</th>
<th>8000</th>
<th>10000</th>
<th>14000(实际11000)</th>
</tr>
</thead>
<tbody>
<tr>
<td>avg rt(ms)</td>
<td>3</td>
<td>7.4</td>
<td>12</td>
<td>22</td>
<td>46</td>
<td>176</td>
</tr>
<tr>
<td>80% rt(ms)</td>
<td>1.8</td>
<td>2</td>
<td>4</td>
<td>7</td>
<td>35</td>
<td>185</td>
</tr>
<tr>
<td>95% rt(ms)</td>
<td>4.4</td>
<td>6</td>
<td>15</td>
<td>33</td>
<td>118</td>
<td>380</td>
</tr>
<tr>
<td>cpu</td>
<td>15</td>
<td>30</td>
<td>40</td>
<td>52</td>
<td>60</td>
<td>70</td>
</tr>
<tr>
<td>load</td>
<td>1.1</td>
<td>2.2</td>
<td>2.5</td>
<td>4</td>
<td>5.5</td>
<td>9</td>
</tr>
</tbody>
</table>
<h4>结果分析</h4>
<p>长链接支撑的读QPS提升50%，CPU消耗降低50%，http的CPU消耗50%在于请求地址解析</p>
<h3>3. 监听配置</h3>
<p>两者均为单链接监听200配置。</p>
<h4>Nacos2.0</h4>
<table>
<thead>
<tr>
<th>tps</th>
<th>1500</th>
<th>3000</th>
<th>6000</th>
</tr>
</thead>
<tbody>
<tr>
<td>cpu</td>
<td>30</td>
<td>30</td>
<td>60</td>
</tr>
<tr>
<td>ygc</td>
<td>0</td>
<td>3.75s/次，7次 0.5秒</td>
<td>3s/次，10次 1.4秒</td>
</tr>
<tr>
<td>cmsgc</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>load</td>
<td>6</td>
<td>14</td>
<td>20</td>
</tr>
</tbody>
</table>
<h4>Nacos1.X</h4>
<table>
<thead>
<tr>
<th>tps</th>
<th>3000</th>
<th>4000</th>
<th>6000</th>
</tr>
</thead>
<tbody>
<tr>
<td>cpu</td>
<td>80%</td>
<td>90%</td>
<td>80%</td>
</tr>
<tr>
<td>ygc</td>
<td>3s一次，10次耗时0.5s</td>
<td>2s一次，15次耗时1.5s</td>
<td>1.5s一次，20次耗时1.3秒</td>
</tr>
<tr>
<td>cmsgc</td>
<td>3s一次，10次耗时18s</td>
<td>4.5一次，7次耗时10s</td>
<td>7.5s一次，4次耗时5s</td>
</tr>
<tr>
<td>load</td>
<td>6</td>
<td>8</td>
<td>11</td>
</tr>
</tbody>
</table>
<h4>结果分析</h4>
<p>gRPC以1500tps持续变更推送，可以保证系统指标稳定，超过1500tps，系统内存和load持续升高，但完全没有CMS GC，CPU也维持在较低的水准。 Http 则有较高的CMS GC，GC耗时严重，CPU损耗高。</p>
<h3>4. 长连接容量测试</h3>
<p>两者均为单链接监听200配置。快上为同时进行大量配置发布。</p>
<h4>Nacos2.0</h4>
<table>
<thead>
<tr>
<th>count</th>
<th>6000</th>
<th>8000</th>
<th>12000</th>
<th>15000</th>
<th>21000</th>
<th>31500</th>
<th>42000</th>
</tr>
</thead>
<tbody>
<tr>
<td>快上时cpu</td>
<td>40</td>
<td>60</td>
<td>80</td>
<td>77</td>
<td>79</td>
<td>80</td>
<td>74</td>
</tr>
<tr>
<td>快上时load</td>
<td>1.5</td>
<td>3</td>
<td>3.3</td>
<td>3.6</td>
<td>5.45</td>
<td>5.6</td>
<td>6.3</td>
</tr>
<tr>
<td>快上耗时</td>
<td>55s</td>
<td>55s</td>
<td>76</td>
<td>100</td>
<td>80</td>
<td>140</td>
<td>130</td>
</tr>
<tr>
<td>稳定时cpu</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1.3</td>
<td>2.8</td>
<td>1.7</td>
<td>2.1</td>
</tr>
<tr>
<td>稳定时load</td>
<td>0.3</td>
<td>0.5</td>
<td>0.5</td>
<td>0.8</td>
<td>0.9</td>
<td>0.8</td>
<td>0.8</td>
</tr>
<tr>
<td>gc</td>
<td>稳定后无GC消耗</td>
<td>稳定后无GC消耗</td>
<td>稳定后无GC消耗</td>
<td>稳定后无GC消耗</td>
<td>稳定后无GC消耗</td>
<td>稳定后无GC消耗</td>
<td>稳定后无GC消耗</td>
</tr>
</tbody>
</table>
<h4>Nacos1.X</h4>
<table>
<thead>
<tr>
<th>count</th>
<th>6000</th>
<th>8000</th>
<th>12000</th>
<th>15000</th>
<th>21000</th>
<th>31500</th>
<th>42000</th>
</tr>
</thead>
<tbody>
<tr>
<td>快上时cpu</td>
<td>80</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<td>快上时load</td>
<td>8</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<td>快上耗时</td>
<td>100s</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<td>稳定时cpu</td>
<td>60</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<td>稳定时load</td>
<td>1</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<td>gc</td>
<td>cmsgc频繁，4秒一次</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
</tbody>
</table>
<h4>结果分析</h4>
<p>当连接量达到600时，Nacos1.X的CMS GC已经十分严重，4s一次，基本已经达到极限；反观Nacos2.0，可以继续增长，单从支撑长链接数量角度，Nacos2.0比Nacos1.X支撑7倍以上长链接。</p>
<h2>测试结论</h2>
<p>单项基础接口压测</p>
<ul>
<li>Nacos2.0读QPS 14000QPS，对比Nacos1.X QPS 8000 提升75%。</li>
<li>Nacos2.0写TPS 2500TPS，对比Nacos1.X无明显提升。</li>
<li>Nacos2.0支撑长链接40000以上，对比Nacos1.X提升7倍以上。</li>
<li>Nacos2.0变更推送1500/s, 对比Nacos1.X无明显提升。</li>
</ul>
<p><strong>注意</strong></p>
<ul>
<li>本测试为对比Nacos1.X版本的测试场景，仅测试单核心接口的能力值，<strong>真实模拟场景压测</strong> 将在后续版本给出；</li>
<li>本测试供给大家作为参考，如有不足或偏差，请指正! 如果对性能有其他需求，可以给我们提issue。</li>
</ul>
</div></div></section><footer class="footer-container"><div class="footer-body"><img src="/img/nacos_gray.png"/><div class="cols-container"><div class="col col-12"><h3>Vision</h3><p>By providing an easy-to-use service infrastructure such as dynamic service discovery, service configuration, service sharing and management and etc., Nacos help users better construct, deliver and manage their own service platform, reuse and composite business service faster and deliver value of business innovation more quickly so as to win market for users in the era of cloud native and in all cloud environments, such as private, mixed, or public clouds.</p></div><div class="col col-6"><dl><dt>Documentation</dt><dd><a href="/en-us/docs/what-is-nacos.html" target="_self">Overview</a></dd><dd><a href="/en-us/docs/quick-start.html" target="_self">Quick start</a></dd><dd><a href="/en-us/docs/contributing.html" target="_self">Developer guide</a></dd></dl></div><div class="col col-6"><dl><dt>Resources</dt><dd><a href="/en-us/community/index.html" target="_self">Community</a></dd><dd><a href="https://cn.aliyun.com/product/aliware/mse?spm=nacos-website.topbar.0.0.0" target="_self">Cloud Service MSE</a></dd><dd><a href="https://www.aliyun.com/product/edas?source_type=nacos_pc_20181219" target="_self">Cloud Service EDAS</a></dd><dd><a href="https://www.aliyun.com/product/ahas?source_type=nacos_pc_20190225" target="_self">Cloud Service AHAS</a></dd></dl></div></div><div class="copyright"><span>@ 2018 The Nacos Authors | An Alibaba Middleware (Aliware) Project</span></div></div></footer></div></div>
	<script src="https://f.alicdn.com/react/15.4.1/react-with-addons.min.js"></script>
	<script src="https://f.alicdn.com/react/15.4.1/react-dom.min.js"></script>
	<script>
		window.rootPath = '';
  </script>
	<script src="/build/documentation.js"></script>
</body>
</html>